package migrations

import (
	/*"fmt"
	"huanteng/models"*/
	"fmt"
	"gorm.io/gorm"
	"huanteng/web/models"
)

//migration会自动创建添加字段,为了保护数据多余的字段需要自己处理
func Delete()  {

}

func Migrations(db *gorm.DB)  {
	fmt.Println("数据迁移.....")
	 db.AutoMigrate(
		&models.User{},
		&models.Admin{},
		&models.Menu{},
		&models.Role{},
		&models.RoleMenu{},
		&models.AdminRole{},
	)
}
